package timerservice;
//import com.siwei.service.business.*;
/**
 * ���调用本地四维SOA服务任务�����
 * */
public class SwSoaServiceTimerTask extends SwTimerTask{
  String serviceID="";
  String method="";
  String[] values=null;
  String[] types=null;
  int iFlag=0;
  BusinessService businessService=null;
  public SwSoaServiceTimerTask(String taskCode,BusinessService businessService){
    super(taskCode);
    this.businessService=businessService;
  }

  public void setServiceInfo(String serviceID,String method
                  ,String[] values,String[] types,int iFlag){
    this.serviceID=serviceID;
    this.method=method;
    this.values=values;
    this.types=types;
    this.iFlag=iFlag;
  }

  public void execute(){
    businessService.getServiceManager().callService(serviceID
        ,method,values,types,iFlag);
  }
}